convertValue

fun convertValue(value: Long, fromCurrency: CurrencyType, toCurrency: CurrencyType): Long

Deprecated

Use CurrencyUtil method(s)

Replace with

import com.infinitekind.moneydance.model.CurrencyUtil.convertValue
CurrencyUtil.convertValue()

Return the amount of toCurrency that the given value of fromCurrency is currently worth.


fun convertValue(value: Long, fromCurrency: CurrencyType, toCurrency: CurrencyType, userRate: Double): Long

Deprecated

Use CurrencyUtil method(s)

Replace with

import com.infinitekind.moneydance.model.CurrencyUtil.convertValue
CurrencyUtil.convertValue()

Return the amount of 'toCurrency' obtained by exchanging 'value' of 'fromCurrency' at the rate 'rate'


fun convertValue(value: Long, fromCurrency: CurrencyType?, toCurrency: CurrencyType?, effectiveDate: Int): Long

Deprecated

Use CurrencyUtil method(s)

Replace with

import com.infinitekind.moneydance.model.CurrencyUtil.convertValue
CurrencyUtil.convertValue()

Return the amount of toCurrency that the given value of fromCurrency was worth on the given date.